<extend name="Public/base" />
<block name="content">
    <div class="row">
        <div style="margin-left: 40%">
            <buttom class="button tiny  radius warning" onclick="stu()">考试成绩</buttom>
            <buttom class="button tiny  radius warning" onclick="poi()">日常扣分</buttom>
        </div>
    </div>
    <center>
        <table id="stuSea" style="display:none;margin-top: 5%">
            <if condition="$ex neq '暂无考试成绩'">
                <volist name="ex" id="ex">
                    <tr>
                        <td><{$ex.term}><{$ex.val}></td>
                        <td><{$ex.score}></td>
                    </tr>
                </volist>
            <else />
                <tr>
                    <td>暂无考试成绩</td>
                </tr>
            </if>
        </table>
        <table id="pointSea" style="display:none;margin-top: 5%">
            <if condition="$po neq '暂无扣分记录'">
                <volist name="po" id="po">
                    <tr>
                        <td><{$po.points_time}></td>
                        <td><{$po.role_name}></td>
                        <td><{$po.score}></td>
                    </tr>
                </volist>
                <else />
                <tr>
                    <td>暂无扣分记录</td>
                </tr>
            </if>
        </table>
    </center>
    <center>
    </center>
    <script>
        function stu() {
            $('#stuSea').show();
            $('#pointSea').hide();
        }
        function poi() {
            $('#pointSea').show();
            $('#stuSea').hide();
        }
    </script>
</block>